import layout from '@/layout'
export default {
  path: '/employee',
  name: 'employee',
  component: layout,
  children: [{
    path: '',
    name: 'employee-c',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  },
  {
    path: '/employee/detail/:id?', // 配置动态路由并且要兼顾没有id的情况
    name: 'employeeDetail',
    component: () => import('@/views/employee/detail'),
    hidden: true, // 不在侧边栏显示
    meta: {
      title: '员工详情'
    }
  }
  ]
}
